FROM python:3.12-slim

WORKDIR /app

COPY requirements.txt .

RUN pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple

COPY . .

# 创建日志目录
RUN mkdir -p logs && chmod 777 logs

CMD ["python", "app.py"] 